Release 10.1A: OpenEdge Development:
Programming Interfaces
Directing output to a file
To direct output to a file, use the
OUTPUT TOstatement followed by the name of the destination file enclosed in quotes. The destination can include the path, or just the filename. If you do not provide a path, Progress writes the file to the current directory. If the file does not exist, Progress creates it. If the file does exist, Progress overwrites its contents.The following code example is simply the report from the last exercise, removed from the interface code:
You can see from the highlighted points that the
OUTPUTTOandOUTPUTCLOSEstatements control the stream. Also note that theSTREAM-IOoption must appear in each output frame phrase.Try running
i-10-09.pand then openingtut-temp.txtin the procedure editor; as you can see from the figure below, the content of the file matches what the interface showed in the last exercise:
![]()
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |